
<html>
    <head>  
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">        
    <meta charset="utf-8">
    <title>PortFolio</title>
    <link href='http://fonts.googleapis.com/css?family=Trade+Winds' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href=" <?php echo(CSS . 'design.css'); ?>">
</head>
<body>

    <div id="nav">

        <ul>
            <li><?php echo anchor('accueil', 'accueil'); ?></li>
            <li><?php echo anchor('competence', 'competence'); ?></li>
            <li><?php echo anchor('contact', 'contact'); ?></li>
            <li><?php echo anchor('cv', 'cv'); ?></li>
            
            <?php
            
            if($this->session->userdata('username') != ""){
                echo "<li>".anchor('gestion', 'gestion')."</li>";
                echo "<li>".anchor('connexion/deco', 'Deco')."</li>";
                
                
            }
            
            else {
                echo "<li>".anchor('connexion', 'login')."</li>";
            }
?>

        </ul>
    </div>

    <div id="content">
        <?php echo $contents,$lesArticles ?>
        <?php
        foreach ($lesArticles as $article)
{
    echo "<h1>$article->titre</h1>";
    echo "<ul>$article->texte</p>";
    
}?>
    </div>

<footer>Copyright 2013</footer>
</body>
</html>

